package com.github.pig.sales.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 公共库配置
 * </p>
 *
 * @author andrew
 * @since 2018-06-23
 */
@TableName("sales_public_repertory")
public class SalesPublicRepertory extends Model<SalesPublicRepertory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "fid", type = IdType.AUTO)
    private Integer fid;
    /**
     * 最大跟进次数
     */
    @TableField("max_call_num")
    private Integer maxCallNum;
    /**
     * 最大跟进天数
     */
    @TableField("max_day_num")
    private Integer maxDayNum;
    /**
     * 最大领用数
     */
    @TableField("max_person_num")
    private Integer maxPersonNum;
    /**
     * 最大跟进间隔(天)
     */
    @TableField("max_interval")
    private Integer maxInterval;
    /**
     * 删除标识
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 状态1有效、0无效
     */
    @TableField("biz_status")
    private String bizStatus;
    /**
     * 备注
     */
    private String remark;
    /**
     * 最后更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 最后更新人ID
     */
    @TableField("update_user")
    private Integer updateUser;
    /**
     * 最后更新人
     */
    @TableField("update_user_name")
    private String updateUserName;
    /**
     * 版本
     */
    @Version
    private Integer version;

    /**
     * 跟进率
     */
    @TableField("follow_up_rate")
    private double followUpRate;

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public Integer getMaxCallNum() {
        return maxCallNum;
    }

    public void setMaxCallNum(Integer maxCallNum) {
        this.maxCallNum = maxCallNum;
    }

    public Integer getMaxDayNum() {
        return maxDayNum;
    }

    public void setMaxDayNum(Integer maxDayNum) {
        this.maxDayNum = maxDayNum;
    }

    public Integer getMaxPersonNum() {
        return maxPersonNum;
    }

    public void setMaxPersonNum(Integer maxPersonNum) {
        this.maxPersonNum = maxPersonNum;
    }

    public Integer getMaxInterval() {
        return maxInterval;
    }

    public void setMaxInterval(Integer maxInterval) {
        this.maxInterval = maxInterval;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getBizStatus() {
        return bizStatus;
    }

    public void setBizStatus(String bizStatus) {
        this.bizStatus = bizStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.fid;
    }

    public double getFollowUpRate() {
        return followUpRate;
    }

    public void setFollowUpRate(double followUpRate) {
        this.followUpRate = followUpRate;
    }

    @Override
    public String toString() {
        return "SalesPublicRepertory{" +
                "fid=" + fid +
                ", maxCallNum=" + maxCallNum +
                ", maxDayNum=" + maxDayNum +
                ", maxPersonNum=" + maxPersonNum +
                ", maxInterval=" + maxInterval +
                ", delFlag='" + delFlag + '\'' +
                ", bizStatus='" + bizStatus + '\'' +
                ", remark='" + remark + '\'' +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                ", updateUserName='" + updateUserName + '\'' +
                ", version=" + version +
                ", followUpRate=" + followUpRate +
                '}';
    }
}
